package edu.qichen.onlineBlog.log.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 功能:
 * 作者:ouyzh
 * 日期:2024/6/21 15:53
 */
@TableName("login_log")
@Data
@Accessors(chain = true)
public class LoginLog {
    @Schema(description = "主键", example = "1")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @Schema(description = "登录用户", example = "admin")
    private String loginUser;

    @Schema(description = "主机地址", example = "127.0.0.1")
    private String loginIp;

    @Schema(description = "登录地址", example = "本机")
    private String loginLocation;

    @Schema(description = "登录时间", example = "2024-01-01 00:00")
    private LocalDateTime loginTime;
}
